const bannersDao = require("../dao/bannersDao");


//新增banner
module.exports.insert = async function (banner) {
    return await bannersDao.insert(banner);
}
//删除banner
module.exports.delete = async function (id) {
    return await bannersDao.delete(id);
}
//修改banner
module.exports.update = async function (id) {
    return await bannersDao.update(id);
}
//查询所有banner
module.exports.find = async function (page, searchParams) {
    return await bannersDao.find(page, searchParams);
}
//按照id查询
module.exports.findById = async function(id){
    return await bannersDao.findById(id);
}